package com.zhaungjie.base.utils.ExcelUtil.spi;

import com.zhaungjie.base.utils.ExcelUtil.ExcelUtil;

import java.io.InputStream;

public abstract class ExcelUtilReadHandler {
    protected InputStream inputStream;

    public ExcelUtilReadHandler(InputStream inputStream) {
        this.inputStream = inputStream;
    }
    public abstract <T> void readSheet(Integer sheetIndex, Class<T> readClazz, ExcelUtil.ExcelReadEventListener<T> excelReadEventListener);

    public abstract <T> void readAllSheet(Class<T> readClazz, ExcelUtil.ExcelReadEventListener<T> excelReadEventListener);

    public abstract void finish();
}
